package cn.wjdiankong.levideo.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;
import cn.wjdiankong.levideo.R;
import cn.wjdiankong.levideo.utils.AdUtils;
import cn.wjdiankong.levideo.utils.AdUtils.AdListener;
import cn.wjdiankong.levideo.utils.Utils;

public class AppLawActivity extends BaseActivity implements AdListener{
	
	public LinearLayout bannerLayout;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_applaw);
        initView();
        initData();
    }

    public void initView(){
        super.initView();
        TextView versionTxt = (TextView) findViewById(R.id.version_txt);
        versionTxt.setText("Version  "+Utils.getVersion(getApplicationContext()));
        bannerLayout = (LinearLayout) findViewById(R.id.ad_banner_layout);
    }
    
    protected void initData(){
    	super.initData();
        setTitle("法律声明");
        setLeftImg(R.drawable.back_icon);
        AdUtils.showBannerAd(bannerLayout, this);
    }

    public static void startDefault(Context context){
    	Intent intent = new Intent(context, AppLawActivity.class);
        context.startActivity(intent);
    }

	@Override
	protected void clickLeftImg() {
		super.clickLeftImg();
		finish();
	}
	
	@Override
	protected String getPageName() {
		return "applaw";
	}

	@Override
	public void showSucc() {
		
	}

	@Override
	public void showFail() {
		
	}

	@Override
	public void click() {
	}

	@Override
	public void close() {
		
	}
    
}
